﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Temas/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="Editar.aspx.cs" Inherits="Talento21.Pages.Empresa.Editar" %>

<%@ MasterType VirtualPath="~/Temas/MasterPage.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <fieldset class="form-horizontal">
        <legend>Editar Empresa</legend>
        <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" DefaultMode="Edit"
            Width="100%" EnableModelValidation="True" OnItemUpdated="FormView1_ItemUpdated">
            <EditItemTemplate>
                <div class="control-group">
                    <label class="control-label">
                        Rut:</label>
                    <div class="controls">
                        <asp:TextBox ID="Emp_rutTextBox" CssClass=".input-small" runat="server" Text='<%# Bind("Emp_rut") %>' />
                        <asp:TextBox ID="DvTextBox" CssClass="input-mini" runat="server" Text='<%# Bind("Dv") %>' />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        Razón Social:</label>
                    <div class="controls">
                        <asp:TextBox ID="RazonSocialTextBox" runat="server" Text='<%# Bind("RazonSocial") %>' />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        Cantidad de Trabajadores:</label>
                    <div class="controls">
                        <asp:TextBox ID="CantTrabajadoresTextBox" runat="server" Text='<%# Bind("CantTrabajadores") %>' />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        Correo Electronico:</label>
                    <div class="controls">
                        <asp:TextBox ID="CorreoTextBox" runat="server" Text='<%# Bind("Correo") %>' />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        Telefono:</label>
                    <div class="controls">
                        <asp:TextBox ID="FonoCelularTextBox" runat="server" Text='<%# Bind("FonoCelular") %>' />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        Dirección:</label>
                    <div class="controls">
                        <asp:TextBox ID="DireccionTextBox" runat="server" Text='<%# Bind("Direccion") %>' />
                    </div>
                </div>
                <%--           <div class="control-group">
                    <label class="control-label">
                        Ciudad:</label>
                    <div class="controls">
                        <asp:TextBox ID="Id_CuidadTextBox" runat="server" Text='<%# Bind("Id_Cuidad") %>' />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        Comuna:</label>
                    <div class="controls">
                        <asp:TextBox ID="Id_ComunaTextBox" runat="server" Text='<%# Bind("Id_Comuna") %>' />
                    </div>
                </div>--%>
                <div class="form-actions">
                    <asp:LinkButton CssClass="btn btn-primary" ID="InsertButton" runat="server" CausesValidation="True"
                        CommandName="Update" Text="Modificar" />
                    <asp:Button ID="Button1" runat="server" CssClass="btn btn-primary" Text="Cancelar"
                        CausesValidation="false" OnClick="Cancel" />
                </div>
                &nbsp;
            </EditItemTemplate>
            <InsertItemTemplate>
            </InsertItemTemplate>
            <ItemTemplate>
            </ItemTemplate>
        </asp:FormView>
    </fieldset>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="Talento21.Modelo.InfEmpresas"
        SelectMethod="ObtenerEmpresaPorRutList" TypeName="Talento21.Negocio.Servicio.SrvEmpresa"
        UpdateMethod="ModificarEmpresa">
        <SelectParameters>
            <asp:QueryStringParameter Name="rutEmpresa" QueryStringField="rut" Type="Int32" />
            <asp:QueryStringParameter Name="dv" QueryStringField="dv" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
